import LayoutChangeByMeminfo from "@/components/LaoutChangeByMeduinfo/index";
import MessageList from "./MessageList";
import { useContext } from "react";
import elcontext from "@/views/home/context";
const Message = () => {
  const elRef = useContext(elcontext);
  if (!elRef) {
    return null;
  }
  return (
    <>
      <LayoutChangeByMeminfo elRef={elRef}>
        <MessageList></MessageList>
      </LayoutChangeByMeminfo>
    </>
  );
};

export default Message;
